package com.hserver.config;

import com.simonalong.neo.Neo;
import cn.hserver.core.ioc.annotation.Bean;
import cn.hserver.core.ioc.annotation.Configuration;

@Configuration
public class DataConfig {

    @Bean
    public Neo data(){
        String url = "jdbc:mysql://127.0.0.1:3306/mydb?useUnicode=true&characterEncoding=UTF-8&useSSL=false";
        String user = "root";
        String password = "Root123.";
        Neo neo = Neo.connect(url, user, password);
        return neo;
    }
}
